<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "activity_lottery_guests_prize".
 *
 * @property string $prize_id
 * @property string $goods_id
 * @property string $cover_img
 * @property string $info
 * @property integer $percentage
 * @property string $instructions
 * @property integer $prize_type
 * @property string $general_id
 * @property string $create_time
 */
class ActivityLotteryGuestsPrize extends \yii\db\ActiveRecord
{
    public static function getDb()
    {
        return yii::$app->vrshop;
    }

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'activity_lottery_guests_prize';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['goods_id', 'percentage', 'prize_type', 'general_id', 'create_time'], 'integer'],
            [['cover_img', 'info', 'instructions'], 'required'],
            [['cover_img', 'info', 'instructions'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'prize_id' => 'Prize ID',
            'goods_id' => 'Goods ID',
            'cover_img' => 'Cover Img',
            'info' => 'Info',
            'percentage' => 'Percentage',
            'instructions' => 'Instructions',
            'prize_type' => 'Prize Type',
            'general_id' => 'General ID',
            'create_time' => 'Create Time',
        ];
    }
}
